<?php

/**
 * Classes filter form.
 *
 * @package    elearning
 * @subpackage filter
 * @author     Your name here
 */
class ClassesFormFilter extends BaseClassesFormFilter
{
  public function configure()
  {
  //status
  	  	$this->widgetSchema['cls_status'] = new sfWidgetFormChoice(array(
			'choices' => ClassesPeer::getClassesStatusChoices(),
			'expanded' => true,
		));
		
	$this->validatorSchema['cls_status'] = new sfValidatorChoice(array(
					'required'      => false,
					'choices'       => array_keys(ClassesPeer::getClassesStatusChoices()),
			));
  
  		//not display 
	unset( $this['created_at'], $this['updated_at']);
  }
    public function getFields()
  {
    return array(
      'id'             => 'Number',
      'level_id'       => 'ForeignKey',
      'cls_start_time' => 'Date',
      'cls_end_time'   => 'Date',
      'cls_status'     => 'ForeignKey',
      'created_at'     => 'Date',
      'updated_at'     => 'Date',
    );
  }
}
